package com.scs.dao;

import com.scs.pojo.ReleaseTask;
import com.scs.pojo.ReleaseTaskChild;
import com.scs.pojo.UploadTask;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TaskMapper {
    int releaseTaskInsert(ReleaseTask releaseTask);
    List<ReleaseTask> studentSelectTask(String courseName, String classes, String taskName);
    List<String> getTaskNameByCourseNameAndClasses(String classes, String courseName);
    int updataReleaseTask(String courseName, String classes, String taskName, String fileName, String path1);
    //教师获取布置作业
    List<ReleaseTaskChild> teacherGetTask(String teacherId);
    @Select("select * from release_task where taskId = #{taskId}")
    List<ReleaseTaskChild> getTaskById(@Param(value = "taskId") String taskId);
    List<ReleaseTaskChild>  studentGetTask(String classes ,String userId);
    int teacherDeleteTask(List<String> taskId);
}
